package cn.com.dcsgo.design.pattern.builder.car;

/**
 * 具体产品-汽车
 *
 * @author Dcsgo
 * @since 21/7/2025 上午 9:17
 */

public class Car {
    /**
     * 座位数
     */
    private int seats;
    /**
     * 引擎
     */
    private Engine engine;
    /**
     * 行车电脑
     * (简单演示实际应该是其他自定义对象)
     */
    private String tripComputer;
    /**
     * GPS
     * (简单演示实际应该是其他自定义对象)
     */
    private String gps;

    public Car() {
    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public Engine getEngine() {
        return engine;
    }

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public String getTripComputer() {
        return tripComputer;
    }

    public void setTripComputer(String tripComputer) {
        this.tripComputer = tripComputer;
    }

    public String getGps() {
        return gps;
    }

    public void setGps(String gps) {
        this.gps = gps;
    }

    @Override
    public String toString() {
        return "Car{" +
                "seats=" + seats +
                ", engine=" + engine +
                ", tripComputer='" + tripComputer + '\'' +
                ", gps='" + gps + '\'' +
                '}';
    }
}
